package com.zte.cl.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "t_img")
public class Img {

	private String id;
	private String newsId;
	private String imgUrl;
	private String path;
	private String newImgUrl;
	private Date insertTime;
	
	@Id
	@Column(length = 32)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	@Column(name = "news_id", length = 32)
	public String getNewsId() {
		return newsId;
	}
	public void setNewsId(String newsId) {
		this.newsId = newsId;
	}
	
	@Column(name = "img_url", length = 255)
	public String getImgUrl() {
		return imgUrl;
	}
	
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	
	@Column(name = "path", length = 255)
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	
	@Column(name = "new_img_url", length = 255)
	public String getNewImgUrl() {
		return newImgUrl;
	}
	public void setNewImgUrl(String newImgUrl) {
		this.newImgUrl = newImgUrl;
	}
	
	@Column(name = "insert_time")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getInsertTime() {
		return insertTime;
	}
	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}
	
	
}
